package com.hunzi.service;

import com.hunzi.domain.Orders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrdersService {
    int deleteByPrimaryKey(String oid);

    int insert(Orders record);

    Orders selectByPrimaryKey(String oid);

    List<Orders> selectAll();

    int updateByPrimaryKey(Orders record);

    //生成订单的方法
    void creatOrder(Orders orders);

    //更新订单地址
    void updateOrdersAddress(Orders orders);
    //更新订单状态
    void updateOrdersState(@Param("oid") String oid , @Param("state") int state);

}
